package com.javaEE.gamepigeon.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.ArrayList;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("竞赛对象")
public class Competition {

    @ApiModelProperty("竞赛ID")
    private Integer comId;

    @ApiModelProperty("发布者ID")
    private Integer publisherId;

    @ApiModelProperty("竞赛名字")
    private String competitionName;

    @ApiModelProperty("竞赛昵称")
    private String nickName;

    @ApiModelProperty("官方网站URL")
    private String officialUrl;

    @ApiModelProperty("详细信息")
    private String infoDetail;

    @ApiModelProperty("报名信息")
    private String registerDetail;

    @ApiModelProperty("竞赛图标URL")
    private String imgUrl;

    @ApiModelProperty("封面图标")
    private String titleImg;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime updateTime;

    @ApiModelProperty("进程表")
    private ArrayList<DateDetail> dateDetails;

    @ApiModelProperty("往年经验")
    private ArrayList<Experience> experiences;

}
